package com.util
{
	/**
	 * 得到初始化的上传下载路径、logo图片路径 
	 */
	public class InitDataXML
	{
		public function InitDataXML(itemXML : XML) {
		}
		public static function getInitDataXML(itemXML : XML) : Object {
			var retrunObj : Object = new Object();
			var envirmentName : String = XML(itemXML.children()[0]).@name;
			if(envirmentName == "SAOZHE") {
				for(var i : int = 0;i < itemXML.child("ENVIRONMENT").child("YONG").length();i++) {
					retrunObj.uploadPath   	   = String(itemXML.child("ENVIRONMENT").child("YONG")[i].UPLOADPATH);
					retrunObj.websiteTitle     = String(itemXML.child("ENVIRONMENT").child("YONG")[i].WEBSITETITLE);
					retrunObj.bannerImage      = String(itemXML.child("ENVIRONMENT").child("YONG")[i].BANNERIMAGE);
					retrunObj.innerBannerImage = String(itemXML.child("ENVIRONMENT").child("YONG")[i].INNERBANNERIMAGE);
				}
			} 
			return retrunObj;
		}
	}
}